import { Card, Tree, Button } from 'antd';

export default function UserPermission() {
  const treeData = [
    {
      title: '系统管理',
      key: 'system',
      children: [
        { title: '用户管理', key: 'user' },
        { title: '角色管理', key: 'role' },
      ],
    },
  ];

  return (
    <Card title="权限分配" style={{ margin: 24 }}>
      <Tree
        checkable
        defaultExpandAll
        treeData={treeData}
      />
      <Button type="primary" style={{ marginTop: 16 }}>保存权限</Button>
    </Card>
  );
}